package com.direction.hold.ui;

import android.app.Activity;
import android.content.res.Resources;
import android.graphics.Color;
import android.os.Bundle;
import android.os.Handler;
import android.os.Message;
import android.text.Editable;
import android.text.TextWatcher;
import android.view.Menu;
import android.view.MenuItem;
import android.view.SubMenu;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.View.OnLongClickListener;
import android.view.Window;
import android.view.inputmethod.InputMethodManager;
import android.widget.AbsListView;
import android.widget.AbsListView.OnScrollListener;
import android.widget.EditText;
import android.widget.ListView;
import android.widget.TextView;
import android.widget.Toast;
import cn.cheln.explorer.actions.EqualCheck;
import cn.cheln.explorer.actions.OperationUtil;
import cn.cheln.explorer.actions.sort.DBSort;
import cn.cheln.explorer.actions.sort.Sort;
import cn.cheln.explorer.beans.FileInfo;
import cn.cheln.explorer.cpnt.adapter.CountAdapter;
import cn.cheln.explorer.cpnt.adapter.FileAdapter;
import cn.cheln.explorer.cpnt.adapter.SelectedIndicator;
import cn.cheln.explorer.ds.database.copersynch.DatasrcDelete;
import cn.cheln.explorer.ds.uri.NavigationNode;
import cn.cheln.explorer.ds.uri.NavigationPool;
import cn.cheln.explorer.ds.uri.SDCardNode;
import cn.cheln.explorer.ui.SearchListViewHolder;
import cn.cheln.explorer.ui.SearchListViewHolder.ExecBody;
import cn.cheln.explorer.ui.ViewHolder;
import cn.cheln.support.data.text.xml.SPUtil;
import cn.cheln.support.log.Logs;
import cn.cheln.support.manager.listener.HomeListener;
import cn.cheln.support.mobile.sdcard.SDcardChecker;
import cn.cheln.support.ui.adapter.ItemDataSrc;
import com.direction.hold.FileApp;
import java.io.File;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
import java.util.Set;

public class SearchActivity extends FileCursorActivity
{
  public static boolean markfromPathActivity;
  public static String staticKeyWords = "";
  public Handler backHandler = new Handler()
  {
    public void adjustCatNum(int paramInt, String paramString1, String paramString2)
    {
      if (paramString1 == null)
        paramString1 = ((SearchListViewHolder.ExecBody)SearchActivity.this.searchHolder.exePool.get(paramString2)).countCache;
      ((TextView)SearchActivity.this.findViewById(paramInt).findViewById(2131230864)).setText(paramString1);
      TextView localTextView = (TextView)SearchActivity.this.findViewById(paramInt).findViewById(2131230864);
      if (((Boolean)SearchActivity.this.btnEffect.get(paramString2)).booleanValue());
      for (int i = 0; ; i = 4)
      {
        localTextView.setVisibility(i);
        return;
      }
    }

    public void adjustCatNum(String paramString)
    {
      adjustCatNum(2131230860, paramString, "folder");
      adjustCatNum(2131230730, paramString, "image");
      adjustCatNum(2131230861, paramString, "audio");
      adjustCatNum(2131230731, paramString, "video");
      adjustCatNum(2131230733, paramString, "apk");
      adjustCatNum(2131230862, paramString, "doc");
    }

    public void handleMessage(Message paramMessage)
    {
      if ((SearchActivity.this.searchHolder.objectWords == null) || (SearchActivity.this.searchHolder.objectWords.equals("")))
      {
        adjustCatNum("—");
        SearchActivity.this.searchHolder.finish();
      }
      do
      {
        return;
        super.handleMessage(paramMessage);
        switch (paramMessage.what)
        {
        case 1:
        case 2:
        default:
          return;
        case 0:
          SearchActivity.this.baseKeywordSearch(SearchActivity.this.searchHolder.objectWords, SearchActivity.this.searchHolder.wordchanged, true);
        case 3:
        }
      }
      while (!(SearchActivity.this.searchHolder.wordchanged));
      SearchActivity.this.searchHolder.wordchanged = false;
      return;
      adjustCatNum(null);
    }
  };
  public Map<String, Object> btnEffect = new HashMap();
  public List<Integer> catUIIds = new ArrayList(0);
  Boolean cateSetted;
  QueryThread currThread;
  protected Boolean emptychanged;
  boolean isNew;
  QueryThread quertThread;
  List<QueryThread> queue = new ArrayList(0);
  public List<Integer> runtimeCatUIIds = new ArrayList(0);
  public EditText searchBox;
  private Handler searchHandler = new Handler()
  {
    public void handleMessage(Message paramMessage)
    {
      super.handleMessage(paramMessage);
      SearchActivity.this.showBottomBar(8);
      switch (paramMessage.what)
      {
      default:
      case 7:
      case 8:
      }
      do
      {
        return;
        Logs.i("rebind --");
        ViewHolder localViewHolder = SearchActivity.this.getViewHolder(SearchActivity.class.getName());
        Object[] arrayOfObject = new Object[1];
        arrayOfObject[0] = paramMessage.obj;
        localViewHolder.dataChanged(arrayOfObject);
        SearchActivity.this.getViewHolder(SearchActivity.class.getName()).rebind();
        return;
      }
      while (SearchActivity.this.adapter == null);
      SearchActivity.this.adapter.getItemDataSrc().clear();
      ((CountAdapter)SearchActivity.this.adapter).items.clear();
      SearchActivity.this.adapter.notifyDataSetChanged();
      SearchActivity.this.listview.setEmptyView(SearchActivity.this.getEmptyView());
      SearchActivity.this.listview.invalidate();
    }
  };
  public SearchListViewHolder searchHolder;
  public View searchPageView;
  protected TextWatcher searchViewTextWatcher;
  boolean started = false;

  static
  {
    markfromPathActivity = false;
  }

  public static void jumpto(FileInfo paramFileInfo1, FileInfo paramFileInfo2, Activity paramActivity, int paramInt)
  {
    if ((paramFileInfo2 != null) && (!(paramFileInfo2.getFile().exists())) && (paramActivity.getClass() == SearchActivity.class))
      searchAgain(paramFileInfo2, (SearchActivity)paramActivity);
    do
    {
      return;
      File localFile = paramFileInfo1.getFile();
      PathActivity.activityInstance.navTool.pushSerial(new SDCardNode(new FileInfo(localFile, paramActivity)), paramActivity);
      PathActivity.activityInstance.access(new SDCardNode(paramFileInfo1), 0, true, 0, paramInt);
      SlideActivity.fileActivityInstance.setDisplayScreen(1);
    }
    while (paramActivity.getClass() != SearchActivity.class);
    staticKeyWords = ((SearchActivity)paramActivity).searchHolder.objectWords;
    paramActivity.finish();
  }

  public static void searchAgain(FileInfo paramFileInfo, SearchActivity paramSearchActivity)
  {
    DatasrcDelete.recursiveUpdateDel(paramFileInfo, paramSearchActivity.getApplicationContext());
    paramSearchActivity.baseKeywordSearch(paramSearchActivity.searchHolder.objectWords);
    Toast.makeText(paramSearchActivity.getApplicationContext(), 2131034298, 1).show();
  }

  public void access(NavigationNode paramNavigationNode, int paramInt1, boolean paramBoolean, int paramInt2, int paramInt3)
  {
  }

  protected void access(NavigationNode paramNavigationNode, int paramInt1, boolean paramBoolean, int paramInt2, int paramInt3, int paramInt4)
  {
    throw new UnsupportedOperationException("Not supported yet.");
  }

  public void baseKeywordSearch(String paramString)
  {
    baseKeywordSearch(paramString, true, true);
  }

  public void baseKeywordSearch(String paramString, boolean paramBoolean1, boolean paramBoolean2)
  {
    this.queue.add(new QueryThread(paramString));
    QueryThread localQueryThread = (QueryThread)this.queue.get(-1 + this.queue.size());
    this.searchHolder.wordchanged = paramBoolean1;
    this.searchHolder.modulechanged = paramBoolean2;
    if (this.currThread == localQueryThread)
      return;
    if (this.currThread != null)
      this.currThread.interrupt();
    if (localQueryThread.isRunned())
      return;
    this.currThread = localQueryThread;
    localQueryThread.start();
  }

  public void closeInput()
  {
    if (this.searchBox == null)
      this.searchBox = ((EditText)findViewById(2131230859));
    if (this.searchBox == null)
      return;
    getWindow().setSoftInputMode(3);
    ((InputMethodManager)getSystemService("input_method")).hideSoftInputFromWindow(this.searchBox.getWindowToken(), 2);
  }

  protected void cutOrCopy(int paramInt)
  {
    EqualCheck localEqualCheck = new EqualCheck(0, 0);
    Collections.sort(OperationUtil.selectedEntities, localEqualCheck);
    if (localEqualCheck.isResult())
    {
      Toast.makeText(this.context, 2131034181, 1).show();
      return;
    }
    SlideActivity.paramActivity.isInOperation = paramInt;
    PathActivity.activityInstance.switchToCutCopy();
    markfromPathActivity = true;
    SlideActivity.fileActivityInstance.setDisplayScreen(1);
    finish();
  }

  public void enableCat(int paramInt1, String paramString, int paramInt2, int paramInt3, boolean paramBoolean)
  {
    label69: int i;
    int j;
    if (((Boolean)this.btnEffect.get(paramString)).booleanValue() == paramBoolean)
      return;
    View localView = findViewById(paramInt1);
    this.btnEffect.put(paramString, Boolean.valueOf(paramBoolean));
    TextView localTextView1 = (TextView)localView.findViewById(2131230863);
    Resources localResources = getResources();
    if (paramBoolean)
    {
      localTextView1.setTextColor(localResources.getColor(paramInt2));
      TextView localTextView2 = (TextView)localView.findViewById(2131230864);
      if (!(paramBoolean))
        break label232;
      i = Color.parseColor("#C82E31");
      label106: localTextView2.setTextColor(i);
      TextView localTextView3 = (TextView)localView.findViewById(2131230864);
      if (!(paramBoolean))
        break label247;
      j = 0;
      label134: localTextView3.setVisibility(j);
      ((TextView)localView.findViewById(2131230864)).setText("—");
      ((SearchListViewHolder.ExecBody)this.searchHolder.exePool.get(paramString)).moduleOpened = Boolean.valueOf(paramBoolean);
      if (!(paramBoolean))
        break label253;
      this.searchHolder.optionSeq.put(Integer.valueOf(paramInt3), paramString);
    }
    while (true)
    {
      new Thread(new Runnable()
      {
        public void run()
        {
          SearchActivity.this.backHandler.sendEmptyMessage(0);
        }
      }).start();
      return;
      paramInt2 = 17170432;
      break label69:
      label232: i = getResources().getColor(17170432);
      break label106:
      label247: j = 4;
      break label134:
      label253: this.searchHolder.optionSeq.remove(Integer.valueOf(paramInt3));
    }
  }

  public void enterDir(FileInfo paramFileInfo)
  {
    if (!(paramFileInfo.getFile().exists()))
      searchAgain(paramFileInfo, this);
    do
      return;
    while (!(paramFileInfo.isDir.booleanValue()));
    jumpto(paramFileInfo, null, this, OperationUtil.mOperationState.intValue());
  }

  public void finish()
  {
    Iterator localIterator = this.btnEffect.entrySet().iterator();
    while (true)
    {
      if (!(localIterator.hasNext()))
      {
        staticKeyWords = this.searchHolder.objectWords;
        this.searchHolder.finish();
        SelectedIndicator.clearState.remove(this);
        SPUtil.putValue(this.context, "file", "Key_Search_Sort", this.policy.getContent().toString());
        super.finish();
        return;
      }
      Map.Entry localEntry = (Map.Entry)localIterator.next();
      SPUtil.putValue(this.context, "file", localEntry.getKey().toString(), localEntry.getValue());
    }
  }

  public View getCancalText()
  {
    return findViewById(2131230858);
  }

  protected String getEmptyText()
  {
    if (!(markfromPathActivity))
      return "";
    return getString(2131034265);
  }

  public View getEmptyView()
  {
    return null;
  }

  public Boolean getEmptychanged()
  {
    return this.emptychanged;
  }

  public int[] getMenuIds()
  {
    throw new UnsupportedOperationException("Not supported yet.");
  }

  public String getNavBarWholeShowText()
  {
    throw new UnsupportedOperationException("Not supported yet.");
  }

  public View getPageView()
  {
    return this.searchPageView;
  }

  public EditText getSearchBox()
  {
    if (this.searchBox == null)
      this.searchBox = ((EditText)findViewById(2131230859));
    return this.searchBox;
  }

  public ViewHolder getViewHolder()
  {
    return super.getViewHolder(SearchActivity.class.getName());
  }

  public void handlerRead(Object paramObject, boolean paramBoolean)
  {
  }

  protected boolean navigate(MenuItem paramMenuItem)
  {
    throw new UnsupportedOperationException("Not supported yet.");
  }

  public ViewHolder newViewHolderInstance()
  {
    return new SearchListViewHolder(this.searchPageView, this);
  }

  protected void onCreate(Bundle paramBundle)
  {
    super.onCreate(paramBundle);
    Integer localInteger1 = (Integer)SPUtil.getValue(this, "file", "KEY_SORT_SEARCH_POLICY", Integer.class);
    Integer localInteger2 = (Integer)SPUtil.getValue(this, "file", "KEY_SORT_SEARCH_SEQ", Integer.class);
    if (localInteger1.intValue() != -1)
      this.policy.setPolicy(localInteger1.intValue());
    if (localInteger2.intValue() != -1)
      this.policy.setSeq(localInteger2.intValue());
    loadViewHolder(SearchActivity.class.getName(), newViewHolderInstance());
    this.searchHolder = ((SearchListViewHolder)getViewHolder(SearchActivity.class.getName()));
    this.catUIIds.add(Integer.valueOf(2131230860));
    this.catUIIds.add(Integer.valueOf(2131230861));
    this.catUIIds.add(Integer.valueOf(2131230731));
    this.catUIIds.add(Integer.valueOf(2131230730));
    this.catUIIds.add(Integer.valueOf(2131230862));
    this.catUIIds.add(Integer.valueOf(2131230733));
  }

  public boolean onMenuItemClick(MenuItem paramMenuItem)
  {
    boolean bool = super.onMenuItemClick(paramMenuItem);
    SPUtil.putValue(this, "file", "KEY_SORT_SEARCH_POLICY", Integer.valueOf(this.policy.getPolicy()));
    SPUtil.putValue(this, "file", "KEY_SORT_SEARCH_SEQ", Integer.valueOf(this.policy.getSeq()));
    return bool;
  }

  public boolean onPrepareOptionsMenu(Menu paramMenu)
  {
    paramMenu.removeItem(2131230906);
    paramMenu.removeItem(2131230907);
    paramMenu.removeItem(2131230908);
    paramMenu.findItem(2131230900).getSubMenu().removeItem(2131230905);
    sortMenu(paramMenu.findItem(2131230900).getSubMenu(), this.policy);
    return true;
  }

  protected void onResume()
  {
    HomeListener.addInstance(this);
    HomeListener.handleResume_backResume(this);
    super.onResume();
  }

  protected void onStop()
  {
    HomeListener.removeInstance(this);
    super.onStop();
  }

  protected void prepareMusicInfo(int paramInt, FileInfo paramFileInfo)
  {
  }

  public void pressEff(View paramView, String paramString, int paramInt1, int paramInt2)
  {
    if (((Boolean)this.btnEffect.get(paramString)).booleanValue());
    for (boolean bool = false; ; bool = true)
    {
      enableCat(paramView.getId(), paramString, paramInt1, paramInt2, bool);
      return;
    }
  }

  public void refresh()
  {
    if (SDcardChecker.srcardStateResolve(true, this))
      return;
    this.viewHolder.dataChanged(new Object[0]);
    this.viewHolder.rebind();
    baseKeywordSearch(this.searchHolder.objectWords);
  }

  public void setEmptychanged(Boolean paramBoolean)
  {
    this.emptychanged = paramBoolean;
  }

  protected void setHiddenFileShowFlag()
  {
  }

  protected void setNavigationPosAndNode(int paramInt1, int paramInt2, NavigationNode paramNavigationNode)
  {
    throw new UnsupportedOperationException("Not supported yet.");
  }

  public void setPageView(View paramView)
  {
    this.searchPageView = paramView;
  }

  public void setPressEff(int paramInt1, String paramString, int paramInt2, int paramInt3, Integer paramInteger)
  {
    Object localObject;
    label22: int i;
    label84: String str;
    label136: int j;
    Map localMap = this.btnEffect;
    if (!(this.cateSetted.booleanValue()))
    {
      localObject = Boolean.valueOf(true);
      localMap.put(paramString, localObject);
      TextView localTextView1 = (TextView)findViewById(paramInt1).findViewById(2131230863);
      localTextView1.setText(paramInt2);
      Resources localResources = getResources();
      if (!(((Boolean)this.btnEffect.get(paramString)).booleanValue()))
        break label285;
      i = paramInt3;
      localTextView1.setTextColor(localResources.getColor(i));
      TextView localTextView2 = (TextView)findViewById(paramInt1).findViewById(2131230864);
      if (!(((Boolean)this.btnEffect.get(paramString)).booleanValue()))
        break label293;
      str = "—";
      localTextView2.setText(str);
      if (((Boolean)this.btnEffect.get(paramString)).booleanValue())
        break label301;
      j = getResources().getColor(17170432);
      label174: localTextView2.setTextColor(j);
      if (!(((Boolean)this.btnEffect.get(paramString)).booleanValue()))
        break label312;
      this.searchHolder.optionSeq.put(paramInteger, paramString);
    }
    while (true)
    {
      findViewById(paramInt1).setOnClickListener(new View.OnClickListener(paramString, paramInt3, paramInteger)
      {
        public void onClick(View paramView)
        {
          SearchActivity.this.pressEff(paramView, this.val$type, this.val$bgoundid, this.val$iValue.intValue());
        }
      });
      findViewById(paramInt1).setOnLongClickListener(new View.OnLongClickListener(paramInt1)
      {
        public void enablecatPost(Integer paramInteger, boolean paramBoolean)
        {
          switch (paramInteger.intValue())
          {
          default:
            return;
          case 2131230860:
            SearchActivity.this.enableCat(2131230860, "folder", 2130968589, 0, paramBoolean);
            return;
          case 2131230730:
            SearchActivity.this.enableCat(2131230730, "image", 2130968590, 1, paramBoolean);
            return;
          case 2131230861:
            SearchActivity.this.enableCat(2131230861, "audio", 2130968591, 2, paramBoolean);
            return;
          case 2131230731:
            SearchActivity.this.enableCat(2131230731, "video", 2130968592, 3, paramBoolean);
            return;
          case 2131230733:
            SearchActivity.this.enableCat(2131230733, "apk", 2130968593, 4, paramBoolean);
            return;
          case 2131230862:
          }
          SearchActivity.this.enableCat(2131230862, "doc", 2130968594, 5, paramBoolean);
        }

        public boolean onLongClick(View paramView)
        {
          SearchActivity.this.runtimeCatUIIds = new ArrayList(SearchActivity.this.catUIIds);
          SearchActivity.this.runtimeCatUIIds.remove(SearchActivity.this.runtimeCatUIIds.lastIndexOf(Integer.valueOf(this.val$id)));
          enablecatPost(Integer.valueOf(this.val$id), true);
          Iterator localIterator = SearchActivity.this.runtimeCatUIIds.iterator();
          while (true)
          {
            if (!(localIterator.hasNext()))
              return true;
            enablecatPost((Integer)localIterator.next(), false);
          }
        }
      });
      return;
      localObject = SPUtil.getValue(this.context, "file", paramString, Boolean.class);
      if (localObject == null);
      localObject = Boolean.valueOf(true);
      break label22:
      label285: i = 17170432;
      break label84:
      label293: str = " ";
      break label136:
      label301: j = Color.parseColor("#C82E31");
      break label174:
      label312: this.searchHolder.optionSeq.remove(paramInteger);
    }
  }

  public void setSearchBox(EditText paramEditText)
  {
    this.searchBox = paramEditText;
  }

  public void setSort()
  {
    this.policy = new DBSort(0, 0);
  }

  public void sort()
  {
    SearchListViewHolder.sOrder = this.policy.getContent().toString();
    baseKeywordSearch(this.searchHolder.objectWords);
  }

  public void sortMenu(SubMenu paramSubMenu, Sort paramSort)
  {
    switch (paramSort.getPolicy())
    {
    default:
      return;
    case 0:
      paramSubMenu.findItem(2131230902).setChecked(true);
      return;
    case 2:
      paramSubMenu.findItem(2131230903).setChecked(true);
      return;
    case 1:
      paramSubMenu.findItem(2131230904).setChecked(true);
      return;
    case 3:
    }
    paramSubMenu.findItem(2131230905).setChecked(true);
  }

  public void startup()
  {
    if (SDcardChecker.srcardStateResolve(true, this))
      this.contentView = SDcardChecker.no_file_layout;
    do
      return;
    while ((this.listview != null) && (this.listview.getCount() > 0));
    if (this.viewHolder == null)
      this.viewHolder = getViewHolder();
    this.viewHolder.start();
    if (markfromPathActivity)
    {
      markfromPathActivity = false;
      this.searchHolder.objectWords = staticKeyWords;
    }
    EditText localEditText = getSearchBox();
    if ((localEditText.getText().toString().trim().equals("")) && (this.searchHolder.objectWords != null) && (!(this.searchHolder.objectWords.trim().equals(""))))
    {
      localEditText.setText(this.searchHolder.objectWords);
      baseKeywordSearch(this.searchHolder.objectWords);
    }
    while (true)
    {
      View localView1 = findViewById(2131230855);
      getSearchBox();
      View localView2 = findViewById(2131230852);
      if ((localView2 != null) && (localView2.getVisibility() == 0) && (localView1 != null) && (localView1.getVisibility() == 8))
      {
        localView2.setVisibility(8);
        localView1.setVisibility(0);
      }
      if (this.searchViewTextWatcher == null)
        this.searchViewTextWatcher = new TextWatcher()
        {
          public void afterTextChanged(Editable paramEditable)
          {
            Iterator localIterator = SearchActivity.this.searchHolder.exePool.values().iterator();
            while (true)
            {
              if (!(localIterator.hasNext()))
              {
                SearchActivity.this.searchHolder.preobjectWords = SearchActivity.this.searchHolder.objectWords;
                SearchListViewHolder localSearchListViewHolder = SearchActivity.this.searchHolder;
                String str = paramEditable.toString();
                localSearchListViewHolder.objectWords = str;
                SearchActivity.staticKeyWords = str;
                SearchActivity.this.baseKeywordSearch(SearchActivity.this.searchHolder.objectWords);
                if (SearchActivity.this.getCancalText() != null)
                {
                  if (!(SearchActivity.this.searchHolder.objectWords.trim().equals("")))
                    break;
                  SearchActivity.this.getCancalText().setVisibility(4);
                }
                return;
              }
              ((SearchListViewHolder.ExecBody)localIterator.next()).moduleOpened = null;
            }
            SearchActivity.this.getCancalText().setVisibility(0);
          }

          public void beforeTextChanged(CharSequence paramCharSequence, int paramInt1, int paramInt2, int paramInt3)
          {
          }

          public void onTextChanged(CharSequence paramCharSequence, int paramInt1, int paramInt2, int paramInt3)
          {
            Logs.i("---------onTextChanged" + paramCharSequence);
          }
        };
      this.listview.setOnScrollListener(new AbsListView.OnScrollListener()
      {
        public void onScroll(AbsListView paramAbsListView, int paramInt1, int paramInt2, int paramInt3)
        {
        }

        public void onScrollStateChanged(AbsListView paramAbsListView, int paramInt)
        {
          SearchActivity.this.closeInput();
        }
      });
      getSearchBox().addTextChangedListener(this.searchViewTextWatcher);
      if (findViewById(2131230853) != null)
        findViewById(2131230853).setVisibility(8);
      if (findViewById(2131230858) != null)
        findViewById(2131230858).setOnClickListener(new View.OnClickListener()
        {
          public void onClick(View paramView)
          {
            SearchActivity.this.searchHolder.objectWords = "";
            ((EditText)SearchActivity.this.findViewById(2131230859)).setText(SearchActivity.this.searchHolder.objectWords);
            SearchActivity.this.findViewById(2131230858).setVisibility(4);
          }
        });
      this.cateSetted = ((Boolean)SPUtil.getValue(this.context, "file", "cateSetted", Boolean.class));
      setPressEff(2131230860, "folder", 2131034305, 2130968589, Integer.valueOf(0));
      setPressEff(2131230730, "image", 2131034155, 2130968590, Integer.valueOf(1));
      setPressEff(2131230861, "audio", 2131034153, 2130968591, Integer.valueOf(2));
      setPressEff(2131230731, "video", 2131034154, 2130968592, Integer.valueOf(3));
      setPressEff(2131230733, "apk", 2131034306, 2130968593, Integer.valueOf(4));
      setPressEff(2131230862, "doc", 2131034289, 2130968594, Integer.valueOf(5));
      if (!(this.cateSetted.booleanValue()));
      SPUtil.putValue(this.context, "file", "cateSetted", Boolean.valueOf(true));
      return;
      if (getCancalText() == null)
        continue;
      getCancalText().setVisibility(4);
    }
  }

  protected void swithToPrivacyActivity()
  {
    throw new UnsupportedOperationException("Not supported yet.");
  }

  class QueryThread extends Thread
  {
    boolean changed = true;
    String inputkeyWords;
    public boolean runned;

    public QueryThread(String paramString)
    {
      this.inputkeyWords = paramString;
    }

    public String getInputkeyWords()
    {
      return this.inputkeyWords;
    }

    public boolean isRunned()
    {
      return this.runned;
    }

    public void run()
    {
      try
      {
        Logs.i("inputkeyWords --" + this.inputkeyWords);
        if (this.inputkeyWords.trim().equals(""))
        {
          SearchActivity.this.backHandler.sendEmptyMessage(0);
          SearchActivity.this.searchHandler.sendEmptyMessage(8);
          this.runned = true;
          return;
        }
        Logs.i("dataChanged -- b");
        Logs.i("dataChanged -- a");
        Message localMessage = new Message();
        localMessage.obj = Boolean.valueOf(SearchActivity.this.searchHolder.wordchanged);
        localMessage.what = 7;
        SearchActivity.this.searchHandler.sendMessage(localMessage);
      }
      catch (Exception localException)
      {
        localException.printStackTrace();
      }
    }
  }
}

/* Location:           H:\360云盘\lewa_explorer_3.0\bin\FileApp_orig_dex2jar.jar
 * Qualified Name:     com.direction.hold.ui.SearchActivity
 * JD-Core Version:    0.5.2
 */